﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GestionarActividadesFrm.aspx.cs" Inherits="ddcCajamarca.Web.AgendaCultural.GestionarActividadesFrm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    
    <div class="col-md-12">
    <div class="panel panel-primary">
        <div class="panel panel-heading">
            <div class="row">
                <div class="col-sm-9">
                    <h3><b>Gestionar Actividades de Evento</b></h3>
                </div>
            </div>
        </div>

        <div class="panel-body">
            <table class="table table-hover table-condensed">
                <tr>
                    <td>
                        <label>Evento:</label>
                    </td>
                    <td>
                        <h3><asp:Label ID="lblEvento" Text="" Font-Bold="True" Font-Italic="False" Font-Names="Times New Roman" runat="server" /></h3>
                        
                    </td>
                </tr>
            </table>
            
            <asp:ListView ID="lvEventos" runat="server"
                ItemType="ddcCajamarca.BusinessEntities.AgendaCultural.ActividadEvento"
                SelectMethod="GetActividadEventos">
                <LayoutTemplate>
                    <table class="table table-hover table-condensed">
                        <thead>
                            <tr>
                                <th>Nombre</th>
                                <th>Día</th>
                                <th>Inicia</th>
                                <th>Termina</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr id="itemPlaceholder" runat="server"></tr>
                        </tbody>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td><%#Item.Nombre %></td>
                        <td><%#Item.Dia.ToShortDateString() %></td>
                        <td><%#Item.HInicio.ToShortTimeString() %></td>
                        <td><%#Item.HFin.ToShortTimeString() %></td>
                        <td>
                            <a href='AgregarActividadesFrm.aspx?idActividad=<%#Item.Id %>&opc=eliminar'
                                onclick='return confirm("Desea Eliminar la Actividad");' class="glyphicon glyphicon-remove label label-danger" >&nbsp;Eliminar</a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:ListView>
            <div class="panel-footer">
                <a href="frmAgendaCultural.aspx" class="btn btn-default">Atrás</a>
            </div>
        </div>

    </div>
    </div>

</asp:Content>
